package top.chj.day17.exam.test2;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * @Auther:小陈的Java
 */
//线程池
public class Demo3 {
    public static void main(String[] args) {
        ExecutorService executorService = Executors.newFixedThreadPool(5);
        executorService.execute(new Runnable() {
            @Override
            public void run() {
                System.out.println("线程池方式");
            }
        });
        executorService.shutdown();
    }
}
